<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>我的推荐</title>
    <!-- zui -->
    <link rel="stylesheet" type="text/css" href="css/normalize.css">
    <link rel="stylesheet" type="text/css" href="css/zui.min.css">
    <link rel="stylesheet" type="text/css" href="css/doc.min.css">
    <style type="text/css">
    	header,footer{background: #ef673c;color: #fff}
    	h2{margin: 0;padding: .5em 0;}
    	h4{padding: .2em 0}
    	.icon-arrow-left{font-size: inherit;}
    	.icon-sign-blank{color: #ef673c;background: #ef673c}
    	.large{font-size: 1.4rem;padding-left: .5em}
    	.can-text{position:absolute;top:50%;left:50%;-webkit-transform: translate(-50%,-50%);transform: translate(-50%,-50%);}
    	.color-1{color: #bbb;font-size: 1.2rem}
    	.color-2{color: orange;font-size: 1.4rem;margin: .5rem 0}
    	.color-3{color: #666;font-size: 1.4rem }
    	.invite{background: #ccc;color: #000;display: inline-block;padding: .6em .5em}
    	.share{position: absolute;bottom: 0;left: 0;width: 100%;padding: 1em 0;background: #fff;color: #666;border-top: 1px solid #ccc;display: none;}
    	.row{margin: 0}
    </style>
</head>
<body class="hidden-md hidden-lg">
	<header class="clearfix">
		<div class="col-xs-2">
			<h2><i class="icon icon-arrow-left"></i></h2>
		</div>
		<div class="col-xs-8 text-center"><h2>我的推荐</h2></div>
	</header>
	<div class="container">
		<div class="row" style="margin-top:.8em">
			<span>
				<i class="icon icon-sign-blank"></i>
				<span class="large">累计推荐：0人</span>
			</span>
		</div>
		<div class="row">
			<div class="col-xs-2"></div>
			<div class="col-xs-8 text-center" style="position:relative">
				<canvas id="myChart" width="400" height="400"></canvas>
				<div class="container can-text">
					<div class="row color-1">累计收入</div>
					<div class="row color-2">0.0元</div>
					<div class="row color-3">查看详情</div>
				</div>
			</div>
		</div>
		<div class="row text-center" style="margin:.4em 0 1em">
			<span>邀请更多好友获取额外收入</span>
		</div>
		<div class="row text-center">
			<img style="width:40%" src="images/qr-code1.jpg">
		</div>
		<div class="row text-center" style="margin-top:1em">
			<span class="invite">邀请码：F428FQN</span>
		</div>
	</div>
	<footer class="navbar-fixed-bottom text-center">
		<h4>邀请好友</h4>
		<div class="row share">
			<div class="col-xs-4">微信</div>
			<div class="col-xs-4">QQ</div>
			<div class="col-xs-4">微博</div>
		</div>
	</footer>
	<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="js/zui.min.js"></script>
	<script type="text/javascript" src="js/chart.min.js"></script>
	<script type="text/javascript">
		$('footer h4').click(function(e){
			$('.share').show();
			e.stopPropagation();
		})
		$(document).click(function(){
			$('.share').hide();
		})


		// 使用jquery方法获取 2d context 对象
		var ctx = $("#myChart").get(0).getContext("2d");
		// 或者使用 document.getElementById 获取 2d context 对象
		// var ctx = document.getElementById("myChart").getContext("2d");

		// 使用$.zui.Chart构造Chart实例
		//var myNewChart = new $.zui.Chart(ctx);
		var data = [
			{
			    value: 100,
			    color: "orange", // 使用颜色名称
			    label: "蓝队"
			}];

		// 图表配置项，可以留空来使用默认的配置
		var options = {
			scaleShowLabels: false, // 展示标签

		    //Number - 环形中间留空圆形半径的百分比
		    percentageInnerCutout : 80, // 如果设置为0则为一般实心饼图
    		animateRotate : false,
		};

		
		// 创建饼图
		var myPieChart = $("#myChart").pieChart(data, options);
		// 创建环形饼图
		var myDoughnutChart = $("#myChart").doughnutChart(data, {segmentShowStroke: false});
	</script>
</body>
</html>